package lmscript.postscript.syntax;

import lmscript.postscript.syntax.stack.OperandStack;

public class PSName extends PSSimple {
	private String nameStr;

	public PSName(String nameStr) {
		super("name", LITERAL);
		this.nameStr = nameStr;
	}

	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof PSName)) {
			return false;
		}
		if (!this.nameStr.equals(((PSName) obj).nameStr)) {
			return false;
		}
		return true;
	}

	public int hashCode() {
		return this.nameStr.hashCode();
	}

	@Override
	public boolean execute(OperandStack os) {
		// TODO Auto-generated method stub
		return false;
	}

	public String getName() {
		return this.nameStr;
	}
}
